import request from '@/utils/request'

// 查询待生产采购明细列表
export function listProductSelect(query) {
  return request({
    url: '/purchase/productSelect/list',
    method: 'get',
    params: query
  })
}

// 查询待生产采购明细详细
export function getProductSelect(productId) {
  return request({
    url: '/purchase/productSelect/' + productId,
    method: 'get'
  })
}

// 新增待生产采购明细
export function addProductSelect(data) {
  return request({
    url: '/purchase/productSelect',
    method: 'post',
    data: data
  })
}

// 修改待生产采购明细
export function updateProductSelect(data) {
  return request({
    url: '/purchase/productSelect',
    method: 'put',
    data: data
  })
}

// 删除待生产采购明细
export function delProductSelect(productId) {
  return request({
    url: '/purchase/productSelect/' + productId,
    method: 'delete'
  })
}

// 导出待生产采购明细
export function exportProductSelect(query) {
  return request({
    url: '/purchase/productSelect/export',
    method: 'get',
    params: query
  })
}
export function exportProStatis(query) {
  return request({
    url: '/purchase/productSelect/exportProStatis',
    method: 'get',
    params: query
  })
}
export function listProStatis(query) {
  return request({
    url: '/purchase/productSelect/listProStatis',
    method: 'get',
    params: query
  })
}
